package org.zsl2;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.zsl2.entity.Customer;

@Configuration
@ComponentScan(basePackages = "org.zsl2")
public class ApplicationCf {

    @Bean
    public Customer getCustomer(){
         Customer customer = new Customer();
         customer.setName("default customer");

         return  customer;
    }
}
